A test application

We use the Remix IDE to compile and run our Solidity code.

Type this code in Remix IDE code section.

pragma solidity ^ 0.5.0;

contract TestApplication {

constructor() public {

}

function getOutput() public view returns(uint) {

uint a = 400;

uint b = 500;

uint result = a + b;

return result;

}

}

Click Start to compile button under the Compile tab.

Click Deploy button under the Run tab.

U nder the Run tab, select TestApplication at 0x... in the drop-down.

To display the result, click getOutput button.

Output

0: uint256: 3

Ether units

U se wei, finney, szabo, or Ether as a suffix to a literal to convert various

Ether-based denominations to be used.

To denote time units, use seconds, minutes, hours, days, and weeks as a

suffix.

Contract properties

The contract properties are a special function is a constructor declared with

the keyword constructor, executed once per contract, and invoked when a

contract is created. State variables are used per contract to store the state of

the contract. To alter the state of a contract, the state variables can be

modified by functions per contract.